<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>相对定位</title>
</head>
<body>
    <div id="outer">
        <div id="inner1"></div>
        <div id="inner2"></div>
    </div>
</body>
</html>